package com.xucy.springboot.designmodel.behavioral.templatemethod;

/**
 * @Author xucy
 * @Date 2019-07-30 10:20
 * @Description
 **/

public class JavaCourse extends Acourse {

    boolean flag;

    public JavaCourse(boolean flag) {
        this.flag = flag;
    }

    @Override
    void makePri() {
        System.out.println("上传uml");
    }

    @Override
    boolean isMakeArticle() {
        return flag;
    }
}
